import config from "/public/config/devConfig";
const token = sessionStorage.getItem("token");

export function previewFile(imageValue) {
  const imageUrl = `${config.domain.image}/${imageValue}`;
  const query = `url=${imageUrl}&token=${token}`;
  const openUrl = `${config.domain.preFile}?${query}`;
  window.open(openUrl);
}
